import {
  Column,
  CreateDateColumn,
  Entity,
  PrimaryGeneratedColumn,
  UpdateDateColumn,
} from 'typeorm';
@Entity('role')
export class Role {
  @PrimaryGeneratedColumn()
  id: string;
  @Column({ name: '角色名称' })
  name: string;
  @Column({ name: '角色编码' })
  code: string;
  // 角色权限列表
  @Column()
  menuIds: string;

  @Column({ name: '状态' })
  status: number;
  @Column({ name: '排序' })
  sort: number;
  @CreateDateColumn({ name: '创建时间' })
  createTime: Date;
  @UpdateDateColumn({ name: '更新时间' })
  updateTime: Date;
}
